import { createRouter, createWebHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    name: 'login',
    component: () => import('../views/login.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/home.vue'),
    children: [
      {
        path: '/introduce',
        name: 'introduce',
        component: () => import('../views/Dashboard/introduce.vue')
      },
      
      {
        path: '/Dashboard',
        name: 'Dashboard',
        component: () => import('../views/Dashboard/Dashboard.vue')
      },
      {
        path: '/add',
        name: 'add',
        component: () => import('../views/Dashboard/add.vue')
      },
      {
        path: '/banner',
        name: 'banner',
        component: () => import('../views/HomePage/banner.vue')
      },
      
    ]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
